<?php

// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');

//Set up some translations
Yii::$classMap = array('User' => 'Usuario.php');

// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
	'basePath' => dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	'name' => 'Matriz de sincronização',

	'preload' => array('log'),

	'import' => array(
		'application.models.*',
		'application.components.*',		
        'application.extensions.*',
	),
	
    'modules' => array(
		'gii' => array(
			'class' => 'system.gii.GiiModule',
			'password' => 'admin',
			'ipFilters' => array('127.0.0.1','::1'),
		),
	),
	'components' => array(
		'user' => array(
			'allowAutoLogin' => false,
            'class' => 'WebUser',
		),
		'urlManager' => array(
			'urlFormat' => 'path',
			'rules' => array(
				'<controller:\w+>/<id:\d+>'=>'<controller>/view',
				'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
				'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
			),
            'showScriptName' => false,
            'caseSensitive' => false,
		),
        'db' => array(
			'connectionString' => 'mysql:host=localhost;dbname=matriz_de_sincronizacao',
			'emulatePrepare' => true,
			'username' => 'root',
			'password' => 'root',
			'charset' => 'utf8',
		),	
		'errorHandler' => array(
			'errorAction' => 'site/error',
		),
		'log' => array(
			'class' => 'CLogRouter',
			'routes' => array(
				array(
					'class' => 'CFileLogRoute',
					'levels' => 'error, warning',
				),
			),
		),
        'captcha' => array(
            'class' => 'CaptchaHelper'
        ),
        'cache' => array(
            'class' => 'system.caching.CFileCache'
        ),
        'sms' => array(
            'class' => 'ext.ClickatellSms.ClickatellSms',
            'clickatell_username' => 'romullogirardi',
            'clickatell_password' => 'QUDPAPVYZPgCbG',
            'clickatell_apikey' => '3427479',
            //'debug' => true, 'https' => false,
        ),
        'viewRenderer' => array(
            'class' => 'CPradoViewRenderer',
        ),
	),

	// application-level parameters that can be accessed
	// using Yii::app()->params['paramName']
	'params' => array(
		// this is used in contact page
		'adminEmail' => 'email@matriz-de-sincronizacao.com',
	),
);